const express = require('express');
const router = express.Router();
const base = require("../db")

/* GET userList page. */
router.get('/', async function(req, res) {
    /* 查询数据 */
    let sql = 'select * from `userlist` where `isGroup` is null';
    let data = null;
    let list = await base(sql, data)
    res.json(Array.from(list))
});

module.exports = router;